package com.itheima.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class DemoTask1 {

    @Scheduled(cron = "0 0 0 L * ?") //秒  分  时   日  月  周
    public void clean(){
        System.out.println(new Date()+" : clean ........");
    }

}
